﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Repositories.RM
{
	/// <summary>
	/// 操作日志模型
	/// </summary>
	public class OperationMqttLogRM
	{
		/// <summary>
		/// 用户账号
		/// </summary>
		public string Account { get; set; }
		/// <summary>
		/// 用户名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 角色名称
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 日志类型 0 用户日志 1 系统日志
		/// </summary>
		public int CommonType { get; set; }
		/// <summary>
		/// 内容
		/// </summary>
		public string Content { get; set; }
	}

	/// <summary>
	/// 登录日志模型
	/// </summary>
	public class LoginLogMqttRM
	{
		/// <summary>
		/// 用户编号
		/// </summary>
		public string Uid { get; set; }
		/// <summary>
		/// 用户主键
		/// </summary>
		public int UserId { get; set; }
		/// <summary>
		/// 用户名
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 角色
		/// </summary>
		public string RoleName { get; set; }
		/// <summary>
		/// 日志类型 0 用户日志 1 系统日志
		/// </summary>
		public int CommonType { get; set; }
		/// <summary>
		/// 客户端IP 地址
		/// </summary>
		public string Ip { get; set; }

		/// <summary>
		/// Session
		/// </summary>
		public string Session { get; set; }
		/// <summary>
		/// 客户端来源 0 PC 1 移动端
		/// </summary>
		public int ClientType { get; set; }
	}
}
